Assignment 1 for algorithms