Added ternary quicksort - it's not pretty yet - so don't diss it