idx_max_dict = np.max(list(dict_with_tuples_key.keys()), axis=0)
lens = np.max([list(idx_max_array), list(idx_max_dict)], axis=0)
2D array to represent a huge python dict, COOrdinate like solution to save memory