code improvement two loops and a buffer >> one loop no buffer

int BufferM[200][8];

do you have any memory left after using up 3200 bytes here?