Replace usages of java.util.Stack with java.util.Deque