improved Vec and DVec with several methods