Li-Ion Charger for Implantable Devices - Selection of optimal charge algorithm and implementation