Solutions to Stanford Algos Course Part 1