Algorithm Assignment 6