Car assemblying line Dynamic Programming