Added compute_distance2boundary