A bunch of exercises taken from the book "Introduction to Algorithms" (3rd edition)