public LinkedList<Integer> searchForPattern(String pattern, String context) {
		LinkedList<Integer> foundPatternList = new LinkedList<Integer>();
		int patternLength = pattern.length(); int contextLength = context.length();
		for(int contextIndex = 0; contextIndex <= contextLength - patternLength; contextIndex++) {
			int match = 0;
			for(int patternIndex = 0; patternIndex < patternLength; patternIndex++) {
				if(pattern.charAt(patternIndex) == context.charAt(patternIndex+contextIndex)) {comparisons++; match++;}
				else {comparisons++; break;}	
			}
			if(match == patternLength) foundPatternList.add(contextIndex);
			comparisons++;	
		}
		return foundPatternList;
	}