Added doxygen comments to compute_distance2outer and compute_distance2inner