A comparison of training techniques : ADALINE, back propagation and genetic algorithms