UCS works, slightly unclean code
Posterior Probability Added
Added Posterior Probability Matrix Exponentiation