Pseudo Code for GA implemented