improve allpairs-plus with Increment