Finished Data-Structures-and-Algorithms homework