Added stack class.

Added a stack class. It has a pretty basic stack API in it.