Just some random implementations of algorithms.