How memory generates heterogeneous dynamics in temporal networks - CX-nets