edited indention for cacheSolve() function