made some matrix functions exported