Applying Genetic Algorithm for Optimizing Broadcasting Process in Ad-hoc Network