Correct a few embarrassing bugs in polynomial due to switching order convention

Signed-off-by: vulpicastor <slz@mit.edu>