Added 2D distances and generalised pairwise potential to n-D

implemented WCA and HS_WCA 2D potentials and made performance improvements to WCA