octree nif for erlang