how to use a SplQueue