added loopTrainMultilayerPerceptrom()