updated cacheMatrix code and added comments