rxnsort.py groups all reactions in training set with same product. 
From this, we make reaction pair for validation of scoring function.