Computer simulation of cardiac arrhythmias