Added generic bagging with average predict

vote predict will be added soon