Manybody efficiency improvement

Interaction loop now tracks manybody interactions when first found so
that not all potentials need to be rechecked when looping over triplets.