scaleModelMatrix function

Centers and scales a matrix