Added stack data structure class

Fixes #1