Detection of Atrial Fibrillation Episodes based on 3D Algebraic Relationships between Cardiac Intervals