Tile a bounding rectangle, generating bounding boxes of tiles of desired size or number.