added tests to tree' fixed the missing tree in most of funcs in OS.cpp, added setMax func in tree, added func compareElements in tree