Algorithms from  "Introduction to Algorithms " implemented in C++ template.