first commit
compute the distance