chinmay has sufficiently explained..... rank basically is the order of any submatrix (it can include the entire determinent) whose determinent is not equal to 0....
took me a little time to understand it too.....
we are the allies of konoha.....shinobis of the....sand