attempt to implement a neural net in C