Approximate In-Memory Computing On Rerams