Added swapped_reindex3d().