strided implementation