Small change in Knotted interface
Test order changed
Refactoring polynomial invariants