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

Given a rectangle of size n x m, return the minimum number of integer-sided squares that tile the rectangle.
 
Please complete the following python code precisely:
```python
class Solution:
    def tilingRectangle(self, n: int, m: int) -> int:
```