Custom interpolation function now matches the output of MATLAB's interpn function.  This has been spot-checked for 1, 2, and 4 dimensions.