Functional stack
Functional queue