Added clone function

Can now return a copy of a vector.