Creating sigleton mechanism in DataVector class