QN-MRF A quasi Newton approach for MAP inference in MRFs when a node is shared by exactly two sub-problems. Refer readme file of TRN-MRF. Function descriptions