Learning Polynomial Functions by Feature Construction