[AL] add binary search tree code.