Fast 2D border ownership assignment