Update RidgeTrackerSmoothTrack function to handle order >4, for hector needs
The RidgeTrackerSmoothTrack subroutine had a maximum order of 4. For Hector this is not enough, so update this function to allow higher order. In the case of order > 4 we need to allow inflection points, so the checks for inflection points used for lower orders are not used for orders > 4. Arguments for function are unchanged and there should not be any difference for other uses of the function.