added the Serializable interface to the elements of the neural network for saving and loading purpose.