removed code in shannon fano encode_position