A multi-layered gravitational search algorithm for function optimization and real-world problems | Synapse