class for search tree