Algorithms for Indoor Positioning Systems Using Ultra-Wideband Signals