Added trees manipulation with java