Implement 8 Queens Problem Algorithm