improve code style
add function MinimiseSingle() for single iteration of minimization;