logBeta function

Backward log-probabilities