The Solution.
Notice, toward the end, I show a different way to do the interpolation, using parallel processing to make use of your machine extra cores. (in case you had extra ones!).