Adapt algorithm to find bitstring with most 1's.