Added basic BN bindings and tests