Algorithms Assignment