Added MI spline estimation code