SNNS: neural networks, C implementation