Bagging

Initial tests have been implemented