  We introduce a new invariant of bipartite chord diagrams and use it to
construct the first examples of groups with Dehn function $n^2\log n$ and other
small Dehn functions. Some of these groups have undecidable conjugacy problem.
