Hey, I think the size of S in this code should be min(m,n) instead of directly "n".
Hey,
I think the size of S in this code should be min(m,n) instead of directly "n".