preparing to refactor to make the binary variation of pso.