normalize 1 row of a 2d array