be 2d vector's operations in C