Implementations of several sort algorithms.