making rref work with complex