Feed forward Neural Networks with XOR and MNIST examples