class BinaryNode {
  constructor(key, value) {
    this.value = value;
    this.key = key;
    this.left = null;
    this.right = null;
  }
  // Cost: O(1)
  free() {
    this.left = null;
    this.right = null;
  }
}