An implementation of quicksort in Ruby, along with a related algorithm to a median value.