added nan support to hp_filt()