Tree data structure and respective testbench