Update algorithm.cpp

this should be a working algorithm to determine which reviewers get what paper