A simple binary search tree implementation