Added basic stack type as a functor with specs and `swap`.