QR Decomposition Extremely Slow