Achieving logarithmic growth of temporal and spatial complexity in reverse automatic differentiation | Synapse