-CPL-:
2-9: use x &= (x-1) to write a faster bitcount
function.
-CPL-:
2-10: use ternary operator ?: to rewrite
the lower function.
-CPL-:
3-1: use two tests inside the loop of binsearch function.