Now returning correct largest community
Refactored
Return the l'th power of (A + I), but only the elements that were
nonzero in A.