Tournament matching.cpp