Remove repetition.
Improve complexity of cubic splines interpolation by using binary search.
Add bicubic spline interpolation for grids.