Fixed qr function to fit multiple numpy version.