Added EOF handling in tree.hpp and list.hpp
Passed "Symmetric Tree"