Energy Efficient and Accurate In-Memory Computing Accelerators for Machine Learning