ruby rc4 impl
changing literals back to base functions