Added a boost Ptr version of PathGeometric
Repairing segments functionality mostly working