AI-CART: An Algorithm to Incrementally Calculate Artificial potential fields in Real-Time