added sameName option (default True) to checkOverlappingContours and separateOverlappingContours