added a dynamically sized bezier BST to query mode