A little mess of algorithms, code and things that I wanted to put somewhere.