Implemented the new learning algorithms