added cube.order() and stubs for intd() and its tests
intd() working, some refactoring of horner()