Rename trees space to tree namespace, corrected includes to be c++ includes, updated header defines.