First commit for Cipher Problem - impleentation of forward backward algorithm