changes to Mat and Matfunctions
Merge branch 'master' of https://github.com/BIDData/BIDMat
redefined unique and unique3