implemented random training

fixed bug in neural net with hidden layers, implemented real random
training into backprop.

hidden layers still need more testing - have not successfully
implemented xor gate yet