Initial commit of distance calculation script