An illustrative implementation of randomized sample sort.