Performance improvement

Converted the AllSynapses structure from being allocated as a ragged
array (1D array of pointers to 1D arrays) to single blocks of memory
(as regular 2D arrays are allocated). This eliminated a memory access
for every synapse state variable access.