Rational Canonical Form Of A Matrix