octree data structure in C++



Hi All,
I'm in process of developing a registration algorithm of two 3D volume.
I need a octree data structure in C++ to calculate octree distance map.
Can anyone point me to some resource where i can find information related to this topic?
Thanks in Advance.
Regards.
.