Stack implemented with slice instead of linked list