Code Kata 2: Binary chop.

Classic implementation and test.