Added encoding and decoding

Encode takes the key divides it by 7 and xors the bits by the remander,
to decodeit does the same thing because anything xored twice by the
samething returns to its normal state