add tree.c
Merge branch 'master' of https://github.com/yoringel/algo