Improving optimizer, loss function and trainable. Testing conjugate gradient