Solving the N Queens problem using back tracking.