add exercise of matrix