implement quick sort in c
implement quick sort in ruby