Library tested with XOR problem - passed

Needed to fix some problems with array overflows, and incorrect indices.
Network tested on XOR problem and results matched after 2000 epochs
as expected.

To be completed: user friendly testing and running functions (i.e.
abstract the single pass functions so process is automatic)