MarkovModels and Factor

Code for markov models.
Working with markov models, building graphs, triangulating it and making junction trees out of it.

Added a few functions in factors which I needed.
Import order should be:
1. Built-in modules.
2. 3rd party packages.
3. You own modules.