added noise filter to step detection algorithm