Dynamical evolution of primordial dark matter haloes through mergers