C interface implementtion plus test
binding.rb added for testing purposes
c interface new approach