Implementation of simple algorithms from introduction to algorithm course.