algorithm assignment on coursera