distance.c