Added method to write vectors
Added method to read vectors