newmat is reverted to its stable version 10 because version 11beta was not working with mac compilers