stack uses vector instead of array
stack refactor
fixed comments
Merge pull request #3 from dan-hill/vectorize-stack

Vectorize stack