Algorithm for Robot Navigation Without Collisions