Genertic Algorithm Implementation