array based stack implementation 5403664