Implement a clone() method in NeuralNet and all classes that are used in NeuralNet and need to be copied