increased efficiency of pairwise structure metric