A Comparative Study of SLAM Algorithms for Autonomous Systems