add a new method to analyze distance between com of atom groups.