Homework for my Algorithms (CS 2223) class.