makeFields alternative prefix-computation algorithm