Design For Ultra Low Power Hardware Accelerator Using Approximate And In-Memory Computing