Removed unused threshold.
Moved recombining skeletons into separate function.
Recombine skeletons in one place. Added separate array for longest paths.