Code for coursera course Algorithms, Part 1