Implementation of neural network from scratch using NumPy