adding definition for cacheSolve function