In the file provided I did not remove the debug code and thus I left as a .php instead of a .lib.php file. With this debug code you can run the file directly and see the code for the implementation of the binary tree to your data... or should I say to manage your data with the highly powerful binary tree. In other words there isnt a need for a readme :p the read me all lies in the php file. ;) ---------------------------------- BasicA <hide@address.com> ----------------------------------