Changed tree datatype from void*