Completed Assignment 2

Added code for cache and inverting matrix