Slice-backed stack implementation & tests.