fixed bilinear interpolation and finished problem 3