Bagging algorithm implementations.