basic matching
basic matching working after solving all conflicts.