Classification Algorithm for Early Detection of Atrial Fibrillation