add quick-sort algorithm in ruby and js