> On Sunday, December 20, 2015 9:58 AM, Pascal Urban <mail at pscl.de> wrote: ... > Both of these implementations are slow because they always create binary trees > with a depth of maxDepth instead of, well, the correct depth. Thank you! As always, I suspected I'd made a dumb mistake - but just wasn't seeing it.