A whole lot of code for potential inclusion in the UCT 2014 ICPC Team notebook.