an attempt to implement neural networks in C