Perceptron and Multilayer back propagation algorithms