Approaching solution for bilinear interpolation