Explores as far as possible along each branch before backtracking.
Stack + visited set — up to V nodes stored