Ticket 48894 - Issue with high number of entry state objects.
Bug Description: With high numbers of entry state objects, we saw performance
degredation with our sorting algorithm in valueset.
Fix Description: This contribution was originally by Mohammad N. converted the
valueset to quicksort. I have changed this to the Hoare quicksort which uses
slightly less operations than the lomuto sort that was provided.
Additionally, this fixes valueset to size_t, which is correct for arrays, fixes
some of our asserts, cleans up braces in code, fixes a misleading indent.
https://fedorahosted.org/389/ticket/48894
Author: Mohammad N., wibrown
Review by: lkrispen (Thanks!)