Implementation of vectors and matrices with double elements.