Artifical neural network with encog library