Completed count sort and (stable) quick sort