rank_filter.hxx: Switch to using deque instead of a list.