Improved heading estimation for smartphone-based indoor positioning systems | Synapse