Separated functions of making patterns into class
Renamed from CornerDetection to LineDetection
Changed CornerDetection to LineDetection
Added a function dedtectValley
Changed XML file structure and its relevant codes