Implementation of Solver for NQueens problem. AI-FMI-2013 task 3