A Novel Dynamic Obstacle Avoidance Algorithm Based on Collision Time Histogram