Simple algorithm for prediction of matches