Hardware Implementation of a Pulse Density Neural Network Using Simultaneous Perturbation Learning Rule