MPISolverWrapper can now handle loss functions with (x,y)
Signed-off-by: Andre Klein <andre.klein@dkfz-heidelberg.de>