fix bug with `discodop fragments --quadratic`

- the number of items to set for ulongset was limited to 'short',
  which caused a bug when clearing the table.
- ulongset & ulongcpy now replaced with regular memset & memcpy
  invocations.
- replace other instances of short for bitset operations with int