improve 'remdups' (thx Paddy)
improve patterns in 'reps' and 'pascal'