Path compaction
Nyaapps
Return the common part