Fix matching error and others
Fix error in matching algorithm where time window is ignored in some cases.
Fix error that sometimes occurs in median-magnitude graph.
Fix error in matching algorithm where time window is ignored in some cases.
Fix error that sometimes occurs in median-magnitude graph.