A Step, Stride and Heading Determination for the Pedestrian Navigation System