working multilayer perceptron, iteration on examples is random