Update part1/variationalmc.cpp