Alopex algorithm for training multilayer neural networks