Adding some fixes to frequent subtrajectories, still working on map matching (3).