Active Cell Balancing in Battery Packs