Simple ruby implementation. Maybe too simple?