Improved slam algorithm by adding 2 additional loop closing techniques. Runtime keeps bounded.