Picks next point using Warnsdorff 's heuristic. Returns false if it is not possible to pick next point.
bool nextMove ( int a [ ] , int * x , int * y ) { int min_deg_idx = -1 , c , min_deg = ( N + 1 ) , nx , ny ;