Given a rectangle of size n x m, return the minimum number of integer-sided squares that tile the rectangle.