Alternate implementation of a binary search tree