Development of Multi-scale Simulation Algorism Based on MHD and PIC Codes