fix big-o notation for quick sort