better setElements fro strided vectors
refine setElements