Source code of simple algorithms.