WIP: interpolation functions in NumPy.
WIP: refactoring.