Detecting Combinatorial Dna-Binding Patterns By The K-Function And Its Generalizations