partial redesign of the MultiLayerNeuralNetworkOptimizer->optimize() method, WIP