word rectangle sum matrix one word change