Modified back propagation algorithm