Java code implementing the Particle Swarm Optimization (PSO) algorithm in solving the N-Queens problem