Fixed rank/uniqueness bug in the genetic algorithm.