Basic implementations of sorting algorithms in Ruby and Python