Bi-Hamiltonian formalism and the Darboux - Crum method: I. From the KP to the mKP hierarchy