implementation of quick sort