adding cacheSolve function and comments