calculate all distance pairs