Working PHP Neural Network classes