A very simple self-balancing binary search tree in JavaScript (Andersson tree)