create project algorithm.distance