the first revision of the last homework - simple binary tree