private static String toHex(int band, int[] hashes) {
            StringBuffer sb = new StringBuffer();
            sb.append(Integer.toHexString(band));
            for (int i = 0; i < hashes.length; i++) {
                sb.append(Integer.toHexString(hashes[i]));
            }
            return sb.toString();
        }
Finds the number of bands that need to be used for a given similarity threshold.

@param nHashes
@param jaccardThreshold
@return
ache/src/main/java/achecrawler/minhash/LSH.java