code: function (tree) {
      var todo = tree.slice();
      var done = [];
      var current;
      while (todo.length) {
        current = todo.pop();
        if (current.nodes) {
          todo = todo.concat(current.nodes);
        } else if (current.leaf) {
          done.push(current);
        }
      }
      return done;
    }
docs: This is my special addition to the world of r-trees every other (simple) method I found produced crap trees this skews insertions to prefering squarer and emptier nodes