rename Path to Segment (not renamed everywhere yet)
add Segment helper functions
copy several Path methods to Segment and rewrite them using new helper functions
rename Segment.time to timeStart, Segment.paths to pathsOld
use new methods in Segment instead of old ones in Path, use branches instead of pathsOld
rename addConnectedPath() to connect()