Algorithms Assignment 1