Improved version of e1071::interpolate

interpolate in n-dimensions