Remove old code
Replace malloc/free by enif_alloc/enif_free
Replace not loaded string with erlang:nif_error
Update test cases
Replace return 0 by return enif_make_badarg(env)
Add argc check for argv values
Change static to dynamic memory for strtree results