Rank of A Matrix