implemented DoubleArrayOutput for vector and also tests