Genetic Algorithm for solving the generalized version of the "Eight Queens Problem"