Group Walls by Proximity

I think that the solution is here, however, i think that it will take a long time processing for big projects…