Binary search tree, design changes