Fixed the MSE calculation for multi-D interpolation