Final changes with comments and test function for the cacheMatrix functions