added step counter algorithm

includes script to run, flow diagrams, and 2 sample data files