selecting contours
building contour match list