added numProcs as parameter to Vector::from