Envoyer par SMS: Learning the best nanoscale heat engines through evolving network topology