implement and test forward propagation for entire neural network