more namespace wrapping
[algo, bugfix] Fixed rotation around the origin
[algo, bugfix] fix incorrect sign handling
[tests] Add sage script for random testing

Compares results to correct output on random inputs using the python
interface from Sage. Currently only tests integral input.