Bilinear interpolation function implemented.