[FOLD] Use stacks based on vectors