The sol to the Coursera algorithm part 1 course