Implementations of various algorithms for use in programming contests.