Some homework for my algorithms course.