Square Bounded Contour Matching