modifying init of vector2darrayclass