force can be computed using distance matrix