Fixed the vertices swap to include all ai-aj and bi-bj not just aj and bj.