Trying to implement calculatin of reliability of combinatorial logic circuits using conditional probabilities