Created Matrix Array to make it easier to manipulate Q and R