Could we do the minHashSignature calculation in a separate function?