build tree recursively, easy, good