Add code for caching an inverted Matrix for assignment #2