Added setMatrix() method. Complete.