Added neural network prediction to ex3_nn.