Added partitioning, fmincg, learningCurves and validation Curves