Statistics for Compute-in-memory designs for deep neural network and combinatorial optimization problems accelerators