Coherent sheaves on Pn and problems of linear algebra