Algot for lane detection