sample for genetic algorithm and a* search