On a rank of a matrix of dimension k