implemented freeNSynapses()