Implementation of tasks and ideas from book "Introduction to Algorithms"  by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein.