adding test classes
added tree datastructure