A SLAM algorithm for indoor mobile robot localization using an Extended Kalman Filter and a segment based environment mapping