Finished BEAR encryption function
-Finalized ChaCha PRF
-Implemented CBC mode
-Fixed error in SHA usage, changed from print() to write()