added MAP decoding step for decoding max-marginals