a stab at a binary search tree. doesn't quite compile yet.