Added compute_distance2boundary to cmontecarlo.h