Some algorithm/sorting practice while learning/exploring Ruby.