Ross' changes to quickSort and StateTrie