Working CBC

Fixed the code to add the CBC encryption and decryption