Geometric theory of Banach spaces. Part I. The theory of basis and minimal systems