Memristive neural network for on-line learning and tracking with brain-inspired spike timing dependent plasticity