optimization cipher noise

I found an optimization for the function _remove_cipher_noise and _add_cipher_noise. We don't need to create an another variable $j and check if it's greater than the lenght of $data.

Just use the modulo.