Class containing left and right child of current node and key value
class Node { constructor ( item ) { this . data = item ; this . left = this . right = null ; } } class Count { constructor ( ) { this . count = 0 ; } } var root ; var ct = new Count ( ) ;