add k_words function to the BiologicalSequence object

partially addresses #25