genetic algo; phase 1