style: Quicksort rules to avoid allocation of temporary vectors.

17% improvement in selector matching on the rainbow page.
auto merge of #1567 : pcwalton/servo/quicksort-selector-matching, r=larsbergstrom

17% improvement in selector matching on the rainbow page.

r? @larsbergstrom