A Java Library for Genetic Algorithms Addressing Memory and Time Issues