Added stack and tests for it.