my exercises for stanford algo course