add support for binary search
a simple program to count the number of set bits