Added a search package. Made the necessary changes to the tree package. First tests are successfull.