removed Vector(generator) constructors and replace by the replicate function