Rank And Trace Of A Matrix