Use a table with an index. VFP indexes are a type of "tree"; B+, I think. Somewhere in the docs is a description of what they consist of. If your assignment is to learn about binary trees, then use something like pascal. If your assignment is to do something with the data, and using current "third party" (vfp) tools is ok, then VFP is a good tool to use. If there was a better way to search for data, the geniuses back at Fox software would have used them.
Let me know if you have any more questions. I could go on about this for hours. Data structures was one of my favorite classes. Hope you liked it too.
^Carl