read ret files and fill matchset.