interpolate for X in a 2d array