linear algorithms
stack
