Added functionality to the C++ code for storing positions for all particles for each Metropolis step.