Methods of algebraic geometry in matrix theory