Refined functions for linear interpolation path planning and added functions for quadratic interpolation path planning