add matrix

add matrix