Add basic line comparison algorithm and demo