pchip interpolation working