A collection of useful algorithms.