Many of the world's greatest inventions have come about by mistake.The pacemaker was created when a doctor accidentally discovered that an electrical charge could regulate heartbeats.