neural net implementation. Need to debug back prop