A set of useful functions and algorithms written by me.