updatePairs: takes an element of the GB and computes all spairs needed with previous elements in the basis (and ring elements, and exterior pairs too), and adds them to 'this.mSPairs'.