provided implementaton for make and cacheSolve