Implement CBC mode