Basic code of binary search tree operations