Implemented edge-edge matching
Implemented corner-corner matching
TMP