added log_prob_propto function in model/util.hpp and switched model template parameter to last position to allow inference