Create distance.h&cpp