Implementation of cacheSolve/makeCacheMatrix functions