slightly modified distance matrix computation