Implementations and explanations of various algorithms.