Fixed infoHash function, added encoding capabilities to BEncode.hs

Modified
  -BEncode.hs
    -Added encode function, which converts a BData into a ByteString.
    -Added type declaration for BDict.
  -Metainfo.hs
    -Correctly computes the infoHash for the torrent file.