Describing step detection algorithm