finished bencoding/bdecoding implementation