validationCurve.m added and  modified