Implements Median Filter for current heartrate