HW7 Question 2 — Matrix Alignment & Reordering