Various implementations of sort and search algorithms.