[PD] cubic interpolation algorithm, not really working...