Necessary to efficiently implement the 2nd cortex algorithm. Was described in the original BOSS paper. I have implemented it before, but there might be bugs.