fixed syntax errors in QR Method; tested QR Method vs. wolfram alpha