(util) Adds confidenceScore utility

This will be used for a factory that will implement the new collection ranking system