Gradient estimates for solutions to divergence form elliptic equations with piecewise constant coefficients in dimension N