faster but still not fast enough
begin C version
fix uniq
fix pair grouper
finished p60
comment