Simple Algorithms implementation and usage.