Issue 516: initial commit

Created Tree clases and tests.