Added a boolean to Cuthill–McKee ordering algorithm