Just some Ruby implementations of simple algorithms