Add pair contraction, namespace for mesh simplification