Ruby implementations of common algorithm problems