buid tree

php code for sitemap tree building