BST implementation in C.
Lecture notes on 1d search.