simple solution to diagonal numsums