Text this: Optimization and discretization of dragonfly algorithm for solving continuous and discrete optimization problems