Implantable heart rhythm monitor