Migrate extent.py to extent.pyx
  - Replace some tuples (ul, lr) with C arrays.
  - Replace some tuple operations with loops.
  - Merge slicing.pyx to extent.pyx