a Java Queue implementation