MRAM In-memory computing macro for AI computing