implemented graph walking code to find all k-bit binary sequences in an n-bit sequence