add openmp support to pair, revise code because superpos is now a class