MHD numerical study of the latitudinal deflection of coronal mass ejection