Added LSCorrection code to LineDetector