A solution for the 8 queens problem in C