Commit implementation of quick sort.