some changes to the matrix library. added them to the veclib.