loading contour files
reading contour files and matching