added get unique distances in tripletList