Add dp_merge_stones.