Remove idQueue from services

The idQueue isn't a necessary structure. While it is more efficient than a binary search for the smallest id it only works when we can be assured that it does not contain any ids from the ids array. To ensure this would require a sort and search. If we're going to sort and search anyway, we might as well do it to find the lowest ids, the search of which we can do in an optimized manner.