MAP function

calculates the Maxiumum APosteriori value (MAP)