Moved copy of checkDuplicate function into HashingLib class