#13: some speed-up's in loops