Completely reworked subtitle queue.

The new queue should be a bit faster than the older one for a similar number of buffered subpictures. It should also work much better when the number of subpicture becomes important.