Solution of 8 queens problem