Add stack implementation and balance program