Improving Indoor Positioning Accuracy through a Wi-Fi Handover Algorithm