Update hassubtree.cpp