fn extend_flat_square_matrix<T: Default>( node_adjacencies: &mut Vec<T>, old_node_capacity: usize, new_node_capacity: usize, exact: bool, ) -> usize