speed up mid-side coding