add longest common continuous segment finder