fill in constructors for VectorD and grid index for other dimensions