Fixed Element Expansion to go from 4-connected style to 8-connected style for N dimensions.