adding clipboard support for MATRIX_2D type