Quick sort function made in ruby during a programming lesson.