DataStructures and algorithms hw