get_distance_rank complete, but no test