While clearing out some old coding I came across an old task I did years ago in Delphi, namely the creation an object oriented implementation of a Binary tree capable of storing any object in that tree.
There probably is not a great demand for this as Object Pascal already offers similar things like that, but I also did not want to throw it away just like that, so if there is somebody out there who is looking for this, here it is.
Changed it slightly to make it Object Pascal compatible. It is still a bit rough around the edges I must admit, but improving it should be easy.
the attached project is a small Q&D test program that shows some of the options. The actual tree implementation ins in bintree.pas, the only unit that one would need to imbed in a project that uses it.