Useful snippets of code: Implementation of important algorithms, data structures and random experiments.