optimize add/sub when denominators are equal