A simple java class to sort an array of enums using quicksort