Update distance.cpp

updated some comments