added binary encoding and decoding for a collection of macaroons