added LineDetection Algorithm