An Implementation of Genetic Algorithms and Population Based Incremental Learning