Adds optimal node calculation for cross validation of ANNs