binary digits, added tests
Merge pull request #117 from pfalabella/bindigits-add-tests

binary digits, added tests