Implementation of search trees