Relatively naive stack, uses LinkedList which is probably not performant.