Small and simple neural network implementation for research