Added quick sort implementation