Completed MALA task (partly rewritten in comparison to MCMC)