Design Of A Current Mode Circuit For Zeroth-Order Optimization Of Memristor-Based Neuromorphic Systems