Solving Combinatorial Optimization Problems Using a New Algorithm Based on Gravitational Attraction