surpringly i needn't write for nx3, nx4 etc as long as the vectors are neighboring each other in RAM