Added support for MAP based factors (printing, product taking etc), wrote MAP for junction tree, confirmed to PEP, wrote test cases