Working pathway comparison by greedy matching