Please solve the programming task below using a self-contained code snippet in a markdown code block.

You are given an m x n binary matrix grid.
In one operation, you can choose any row or column and flip each value in that row or column (i.e., changing all 0's to 1's, and all 1's to 0's).
Return true if it is possible to remove all 1's from grid using any number of operations or false otherwise.
 
Please complete the following python code precisely:
```python
class Solution:
    def removeOnes(self, grid: List[List[int]]) -> bool:
```