public long computeHashValueForPattern(String pattern, int patternLength) {
		long hash = 0;
		for(int index = 0; index < patternLength; index++) {
			hash = (hash * alphabet + pattern.charAt(index)) % primeNumber;
			comparisons++;
		}
		return hash;
	}