Some of my code from Coursera Algorithms course