Example algorithms and useful snippets of code produced by the MASS research group at the University of Leeds