Major speed improvements.
Merge branch 'master' of https://github.com/johanstenberg92/Factorization