Bitwise- and hash-table-based solutions for the n-queens problem, with testing