answered linear_merge