small bug fix for pair-eq-pes
same thetaab
add dist
move common code to pair.hpp