Fixed bug with swapped bounds.
Merge branch 'polynominal'