Updated code for assignment 2. Matrix cache object and inverse calculation function seem to work.