Added more sophisticated boosting algorithm