Faster version of recursive BRIM -- 10s for 10^3x10^3