genetic algorithm to find optimal truss