sum matrix task