updated rerankByPurity
Merge branch 'master' of https://github.com/agarwa13/cs_412_assignment_3