Synaptic Resistor Networks For Intelligent Systems With Real-Time Learning