Ultra Low Power Circuits For Internet Of Things And Deep Learning Accelerator Design With In-Memory Computing