added code for bencode/bdecode