enumerating k-mers solution