the source code for Algorithm on Coursera