Step 2 – Generating the Self-Collision matrix