added radixselect and segreduce