Segment adding now basically works - although not auto-detection of multiple
routes per segment.
Got a workable algorithm to create all necessary segments for a set of stops.
Have tested on sample dataset and now seems to be working, with decent
performance.