quick sort with transient and atoms done