void swap(int* p, int* q)
{
  int t = *p;
  *p = *q;
  *q = t;
}

void swap_l(long* p, long* q)
{
  long t = *p;
  *p = *q;
  *q = t;
}
