Added QR method for vector<vector<double>>