quick sort modified