Code for exercices of coursera "Introduction to Algorithms" course