multilayer nn and cross validation