How to build Ensemble Models in machine learning? (with code in R)