Introduce Tree data structure

Introduce Tree data structure: all tests to be done, only compiled OFF