Implementation of Bencode encoding written in rust