fixed bug with QR when matrix has more rows than columns, and isUpperTriagonal