One and TwoBodyEngines properly deallocate memory