HomeDoc8 queens problem algorithm pdf