Added CTR mode
Modified encryption to use CTR mode