BackPropogation Algorithm for neural network with example