Comparison of wireless clock synchronization algorithms for indoor location systems