refine the Fibrillation detection and treatment

add an array to record last 6 rate, and based on this array to check
whether there is a Fibrillation