Spell Matrix calculation groundwork.