Add makeCacheMatrix implementation