I would say the steps of the algorithm are more like:
- find every user within an acceptable MMR range
- if a user has a 100% match rating, return that player
- otherwise, wait n milliseconds and re-run the function with elapsed time
- find the same pool of players, but increase their match percentage as a function of time