A new algorithm generated at the University of Leeds could help doctors across Bradford extend the life of pacemakers.