Added distance calculating func.
Added distance calculating func.

SamReha/dictator1,SamReha/dictator1,kthtes/dictator1,SamReha/dictator1,SamReha/dictator1,kthtes/dictator1,kthtes/dictator1,kthtes/dictator1,SamReha/dictator1,kthtes/dictator1