sequence_probs function

Calculation of probabilities for binary sequences