Implementing 2D int vector serialization