creates a working makeCacheMatrix class