A basic neural network trainer and tester