cacheMatrix function

Assignment 2.