added a new implementation of the neural net which allows for multiple layers