first attempt (broken) at binary search tree