Flash programming of all the cells in an array, sector or block simultaneously