Computing low degree polynomials from balckbox function.