row_rot function

Takes i and k-th row of a matrix and rotate matrix by theta angle (requires matrix a to be 2*q matrix)