speeding up force-directed compaction