Implements the RC4 encryption algorithm
