Bilinear interpolation matlab algorithm