RC4 implementation questions