Create HW9 problem 1

constrained optimization spline