Added cacheMatrix functions.