thread example that sums lines of a matrix