My code for Coursera Princeton Algorithm Course