Towards a magnetoelectric memory