update datastructure to store matches between rigs. #2
small correction of ComputeMapMatchesRig. #2
cleaning and graph cleaning improvement. #2