Slightly refactored find_arc_center in order to place the calculated center
at the end of the list, instead of confusingly in the middle.
Moved path manager switching algorithms to library.