added BinaryTree and implemented isNullTree