A Monte-Carlo based approach for pricing credit default swaps with regime switching. (1st October 2018)