(emre) quick sort is implemented