Assignment 2: Cached Inverse Matrix Calculation