Changed `bit` to `bool`

Because of error "undefined identifier bit" we need to change `bit` to `bool`.
Merge pull request #382 from OrelSokolov/patch-1

Changed `bit` to `bool`