reduce matrix cell size from int to int16.  add static variable to spcifiy this