fix string dependency declaration
added Tree class with tests