Implemented a polynomial-time algorithm for inference in a linear-chain Bayes net.

Added a demo and results for a model of probabilistic dominos.