Stochastic Compute-In-Memory Hardware Accelerator For Intelligent Edge Devices