Updated master, subproblem and controller with valgrind memcheck
completed.