Made computeActiveSynapses into staticmethod