Reverse Cuthill–McKee algorithm