Add javadoc commentaries to DistanceCalculator