Exact Operational Matrices for Rational Bernstein Polynomials and its Application for Solving MHD Problem