Moved the neural network specific functions to the subfunctions folder.