Multidimensional linear interpolation