Use line comparison algorithm

closes #11
2.0.0