Implement Stack Using List Data In R