Uniform approximation by polynomials in two functions