Added serialize for vector