implemented contour scaling functions
added an example with finding the best matching contour in the image