Rank and Nullity of linear transformations and matrices