implemented population and GA classes