Genetic Folding Algorithm