really adding the naive matching algorithm now, also the greedy algorithm