Patrick and Shehzan's implementation of Neural Networks