A New Method for Optimization of Dynamic Ride Sharing System