arithcode test updated
working version without read file