Just a bunch of simple algorithms.