added the two types of quick sort