cacheMatrix corrected

Assignment ready to submit