HW2, cachematrix