N queens BT