add cross validation to neural network