function to dump segment pair constraints done
extended costs() signature to include segment pairs as well, in RF cost fn and segmentation cost fn. Also fixed a couple of errors in ProblemGraphWriter
new class to dump segment pair info