Add matrixreduce macro, veccompare