working shape matcher based on contours