Updated g_cluster

Rewrote the monte-carlo algorithm to do something useful,
namely generate a smooth trajectory through all the
frames where the ends of the trajectory are at maximum
RMSD from each other.

Change-Id: I9a5ebd127e5d34a19a79becfd8f830b11c82839f