Solutions for wearable pedestrian dead reckoning and misalignment