Factoradic and other utility functions
Merge branch 'master' of https://github.com/cottley/laughing-octo-ninja