Synthesis of reversible circuits using the genetic algorithm