An algorhythm for the recognition of heart rate disturbances