Add matrix2x3 logic
add matrix3x3 logic