title: javascript binary search tree implementation
body: <p>Anyone know of any good examples of a simple BTree implementation in Javascript? I have a bunch of "things" arriving randomly, and want to insert each one efficiently. </p>
  
  <p>Ultimately, each new one will get inserted into the DOM based on where it ends up in the tree.</p>
  
  <p>I can code this from scratch but would rather not reinvent any wheels.</p>
  
  <p>thanks</p>