Changed Verify to take a matrix
Moved RowMatrix to common