Add stack implementation