Optimal Reinsurance and Dividend Payment Strategies