added getMatrix function

Added a function to allow users to get the matrix from a QR object. With or without border mode (defaults to true) lets uses decide whether or not they want the border as part of their data.