Computer simulation of cardiac rhythm and artificial pacemakers using a ten-element heart model