Exploiting the Hidden Structure of Junction Trees for MPE