Optimal Reinsurance And Asset Allocation Under Regime Switching