Fast beacon recognition for accurate ultrasonic indoor positioning