High-energy particle acceleration during the implosion driven by 3-dimensional X-type current loop coalescence in solar flares