Excersise in implementing a Binary Search Tree in Java, C++, and Python