added find_contours_mod. refactoring for contours.
added Shape class, including inheriting class Square
fixed contour calculation for shape. added match_shapes.