Added stuff before easter. TODO: infernece alg. mrf building methods, dp ...