Implement posterior_mode and fit_map for a series of distributions.