A Multi-level procedure for enhancing accuracy of machine learning algorithms