Add Nicolas Perrin's pattern generator