Consider using `ArrayDeque` if you need stack or queue semantics, as it's faster than `Stack`.