Applying the Smith-Waterman Similarity to Cellular Automata