d_vec: equal, fprint, randtest and swap functions
d_vec: Add neg, zero and is_zero functions
d_vec: add and sub functions
d_vec: prod and sum functions

The used tolerance for the tests is slightly high to account for
small numerical errors.
d_vec: innerprod, norm and one functions