Indoor Location Algorithm Based on the Measurement of the Received Signal Strength