Updated matrix library.

Updated matrix library.