created custom binary tree class