Added new B-Spline function after receiving feedback from professor.