let generate_row_ordering (n : int) : int array  =
  Array.init n (fun x -> x)