Resistive Memory for Neuromorphic Algorithm Acceleration.