Implementation of search trees.