Stack impl for merged list