Different known algorithms... the Ruby way.