Fix 9.1 "Generic Matrix" homework.